package stategy;

/**
 * @author ZLL
 * @date create in 2018/05/10
 */
public class Mian {

    public static void main(String[] args) {
        MovieTicket movieTicket = new MovieTicket();
        double originPrice = 60.0;

        System.out.println("原价为===》"+originPrice);
        movieTicket.setPrice(originPrice);
        movieTicket.setDiscount(new StudentDiscount());

        System.out.println(movieTicket.getPrice());

        movieTicket.setDiscount(new ChildrenDiscount());

        System.out.println(movieTicket.getPrice());

    }
}
